<header class="header white-bg">
  <div class="sidebar-toggle-box">
      <div data-original-title="Toggle Navigation" data-placement="right" class="icon-reorder tooltips"></div>
  </div>
  <!--logo start-->
  <a href="#" class="logo" >三创<span>教育</span></a>
  <!--logo end-->
  <div class="nav notify-row" id="top_menu">
    <!--  notification start -->
    <ul class="nav top-menu">
      <!-- settings start -->
      <li class="dropdown">
          <ul class="dropdown-menu extended tasks-bar">
              <div class="notify-arrow notify-arrow-green"></div>
              <li>
                  <p class="green">You have 6 pending tasks</p>
              </li>
              <li>
                  <a href="#">
                      <div class="task-info">
                          <div class="desc">Dashboard v1.3</div>
                          <div class="percent">40%</div>
                      </div>
                      <div class="progress progress-striped">
                          <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                              <span class="sr-only">40% Complete (success)</span>
                          </div>
                      </div>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <div class="task-info">
                          <div class="desc">Database Update</div>
                          <div class="percent">60%</div>
                      </div>
                      <div class="progress progress-striped">
                          <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                              <span class="sr-only">60% Complete (warning)</span>
                          </div>
                      </div>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <div class="task-info">
                          <div class="desc">Iphone Development</div>
                          <div class="percent">87%</div>
                      </div>
                      <div class="progress progress-striped">
                          <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 87%">
                              <span class="sr-only">87% Complete</span>
                          </div>
                      </div>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <div class="task-info">
                          <div class="desc">Mobile App</div>
                          <div class="percent">33%</div>
                      </div>
                      <div class="progress progress-striped">
                          <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 33%">
                              <span class="sr-only">33% Complete (danger)</span>
                          </div>
                      </div>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <div class="task-info">
                          <div class="desc">Dashboard v1.3</div>
                          <div class="percent">45%</div>
                      </div>
                      <div class="progress progress-striped active">
                          <div class="progress-bar"  role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
                              <span class="sr-only">45% Complete</span>
                          </div>
                      </div>

                  </a>
              </li>
              <li class="external">
                  <a href="#">See All Tasks</a>
              </li>
          </ul>
      </li>
      <!-- settings end -->
      <!-- inbox dropdown start-->
      <li id="header_inbox_bar" class="dropdown">
          <ul class="dropdown-menu extended inbox">
              <div class="notify-arrow notify-arrow-red"></div>
              <li>
                  <p class="red">You have 5 new messages</p>
              </li>
              <li>
                  <a href="#">
                      <span class="photo"><img alt="avatar" src="/static/img/avatar-mini.jpg"></span>
                            <span class="subject">
                            <span class="from">Jonathan Smith</span>
                            <span class="time">Just now</span>
                            </span>
                            <span class="message">
                                Hello, this is an example msg.
                            </span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="photo"><img alt="avatar" src="/static/img/avatar-mini2.jpg"></span>
                            <span class="subject">
                            <span class="from">Jhon Doe</span>
                            <span class="time">10 mins</span>
                            </span>
                            <span class="message">
                             Hi, Jhon Doe Bhai how are you ?
                            </span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="photo"><img alt="avatar" src="/static/img/avatar-mini3.jpg"></span>
                            <span class="subject">
                            <span class="from">Jason Stathum</span>
                            <span class="time">3 hrs</span>
                            </span>
                            <span class="message">
                                This is awesome dashboard.
                            </span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="photo"><img alt="avatar" src="/static/img/avatar-mini4.jpg"></span>
                            <span class="subject">
                            <span class="from">Jondi Rose</span>
                            <span class="time">Just now</span>
                            </span>
                            <span class="message">
                                Hello, this is metrolab
                            </span>
                  </a>
              </li>
              <li>
                  <a href="#">See all messages</a>
              </li>
          </ul>
      </li>
      <!-- inbox dropdown end -->
      <!-- notification dropdown start-->
      <li id="header_notification_bar" class="dropdown">
          <ul class="dropdown-menu extended notification">
              <div class="notify-arrow notify-arrow-yellow"></div>
              <li>
                  <p class="yellow">You have 7 new notifications</p>
              </li>
              <li>
                  <a href="#">
                      <span class="label label-danger"><i class="icon-bolt"></i></span>
                      Server #3 overloaded.
                      <span class="small italic">34 mins</span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="label label-warning"><i class="icon-bell"></i></span>
                      Server #10 not respoding.
                      <span class="small italic">1 Hours</span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="label label-danger"><i class="icon-bolt"></i></span>
                      Database overloaded 24%.
                      <span class="small italic">4 hrs</span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="label label-success"><i class="icon-plus"></i></span>
                      New user registered.
                      <span class="small italic">Just now</span>
                  </a>
              </li>
              <li>
                  <a href="#">
                      <span class="label label-info"><i class="icon-bullhorn"></i></span>
                      Application error.
                      <span class="small italic">10 mins</span>
                  </a>
              </li>
              <li>
                  <a href="#">See all notifications</a>
              </li>
          </ul>
      </li>
      <!-- notification dropdown end -->
  </ul>
  </div>
  <div class="top-nav ">
      <ul class="nav pull-right top-menu">
          <!-- user login dropdown start-->
          <li class="dropdown">
              <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                  <img alt="" src="/static/img/avatar1_small.jpg">
{#                  {% if  request.user.username == "" %}#}
{#                  <span class="username">欢迎，游客！</span>#}
{#                  {% else %}#}
{#                  <span class="username">欢迎，{{ request.user.username }}！</span>#}
{#                  {% endif %}#}
                  <span class="username">欢迎，{{ request.user.username }}！</span>
                  <b class="caret"></b>
              </a>
              <ul class="dropdown-menu logout" style="width: auto !important;">
                  <div class="log-arrow-up"></div>
                  <!--<li><a href="#"><i class=" icon-suitcase"></i> 个人中心 </a></li>-->
                  <li><a href="#"><i class="icon-cog"></i> 设置 </a></li>
                  <li><a href="#"><i class="icon-bell-alt"></i> 消息 </a></li>
                  <li><a href="{% url 'logout' %}"><i class="icon-key"></i> 退出 </a></li>
              </ul>

          </li>
          <!-- user login dropdown end -->
      </ul>
  </div>
</header>